<template>
  <div>
    <!-- 实时总流量 -->
    <div style="width: 100%; height: 300px">
      <img style="width: 80%;height: 60%;margin-left: 35px;" src="@/assets/images/zll.png" alt="">
      <div style="text-align: center;color: #fff;line-height: 22px;font-size: 16px;margin-top: 10px;">SLB</div>
      <div style="text-align: center;color: #fff;line-height: 22px;font-size: 22px;margin-top: 10px;">
        <span style="font-size: 24px;">{{ flow }}</span>
        <span style="font-size: 16px;">{{ unit }}</span>

      </div>
    </div>
  </div>
</template>
<script>
import { getZll } from "@/utils/httpUtils";
import * as echarts from "echarts";
export default {
  data() {
    return {
      flow: '',
      unit: ''
    };
  },
  mounted() {
    this.getEnrollData();
  },
  methods: {
    getEnrollData() {
      let _this = this
      let param = {
        apiId: '',
        userId: ''
      }
      getZll(param).then((res) => {
        let data = res
        _this.flow = data.flow,
          _this.unit = data.unit
      });
    },
  },
};
</script>
